package cn.xd.itstack.springframework.beans.factory;

/**
 * @Classname FactoryBean
 * @Description 工厂Bean
 * @Date 2022/5/27 下午5:45
 * @Created by lvxiaodong
 */
public interface FactoryBean<T> {

    /**
     * 获取对象
     * @return
     * @throws Exception
     */
    T getObject() throws Exception;

    /**
     * 获取类型
     * @return
     */
    Class<?> getObjectClass();

    /**
     * 是否单例
     * @return
     */
    boolean isSingleton();
}
